package com.shinewind.info.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shinewind.info.mapper.IModelInfoMapper;
import com.shinewind.info.service.IModelInfoService;
import com.shinewind.pojo.entity.ModelInfo;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class ModelInfoServiceImpl extends ServiceImpl<IModelInfoMapper, ModelInfo> implements IModelInfoService {
    @Override
    public ModelInfo getModelInfoBymId(String mId) {
        ModelInfo modelInfo = this.lambdaQuery().eq(ModelInfo::getMId,mId).one();
        return modelInfo;
    }

    @Override
    public ModelInfo getModelInfoBydId(String dId) {
        ModelInfo modelInfo = this.lambdaQuery().eq(ModelInfo::getDId,dId).one();
        return modelInfo;
    }
}
